home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 54 68 65 20 41 6d 6f 72 |n.From: |The Amor|
|00000030| 70 68 6f 75 73 20 4d 61 | 73 73 20 3c 72 6f 62 69 |phous Ma|ss <robi|
|00000040| 6e 73 6f 6e 40 62 6c 75 | 65 2e 77 65 65 67 2e 75 |nson@blu|e.weeg.u|
|00000050| 69 6f 77 61 2e 65 64 75 | 3e 0a 4e 65 77 73 67 72 |iowa.edu|>.Newsgr|
|00000060| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000070| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 76 |c.Subjec|t: Re: v|
|00000080| 61 72 69 61 62 6c 65 20 | 6c 65 6e 67 74 68 20 73 |ariable |length s|
|00000090| 74 72 69 6e 67 0a 44 61 | 74 65 3a 20 4d 6f 6e 2c |tring.Da|te: Mon,|
|000000a0| 20 35 20 46 65 62 20 31 | 39 39 36 20 31 37 3a 35 | 5 Feb 1|996 17:5|
|000000b0| 37 3a 34 36 20 2d 30 36 | 30 30 0a 4f 72 67 61 6e |7:46 -06|00.Organ|
|000000c0| 69 7a 61 74 69 6f 6e 3a | 20 55 6e 69 76 65 72 73 |ization:| Univers|
|000000d0| 69 74 79 20 6f 66 20 49 | 6f 77 61 2c 20 49 6f 77 |ity of I|owa, Iow|
|000000e0| 61 20 43 69 74 79 2c 20 | 49 41 2c 20 55 53 41 0a |a City, |IA, USA.|
|000000f0| 44 69 73 74 72 69 62 75 | 74 69 6f 6e 3a 20 77 6f |Distribu|tion: wo|
|00000100| 72 6c 64 0a 4d 65 73 73 | 61 67 65 2d 49 44 3a 20 |rld.Mess|age-ID: |
|00000110| 3c 50 69 6e 65 2e 41 33 | 32 2e 33 2e 39 31 2e 39 |<Pine.A3|2.3.91.9|
|00000120| 36 30 32 30 35 31 37 35 | 34 31 36 2e 34 31 31 30 |60205175|416.4110|
|00000130| 39 46 2d 31 30 30 30 30 | 30 40 72 65 64 2e 77 65 |9F-10000|0@red.we|
|00000140| 65 67 2e 75 69 6f 77 61 | 2e 65 64 75 3e 0a 52 65 |eg.uiowa|.edu>.Re|
|00000150| 66 65 72 65 6e 63 65 73 | 3a 20 3c 34 66 35 73 39 |ferences|: <4f5s9|
|00000160| 37 24 38 73 68 6f 40 74 | 69 67 67 65 72 2e 63 63 |7$8sho@t|igger.cc|
|00000170| 2e 75 69 63 2e 65 64 75 | 3e 0a 4e 4e 54 50 2d 50 |.uic.edu|>.NNTP-P|
|00000180| 6f 73 74 69 6e 67 2d 48 | 6f 73 74 3a 20 72 65 64 |osting-H|ost: red|
|00000190| 2e 77 65 65 67 2e 75 69 | 6f 77 61 2e 65 64 75 0a |.weeg.ui|owa.edu.|
|000001a0| 4d 69 6d 65 2d 56 65 72 | 73 69 6f 6e 3a 20 31 2e |Mime-Ver|sion: 1.|
|000001b0| 30 0a 43 6f 6e 74 65 6e | 74 2d 54 79 70 65 3a 20 |0.Conten|t-Type: |
|000001c0| 54 45 58 54 2f 50 4c 41 | 49 4e 3b 20 63 68 61 72 |TEXT/PLA|IN; char|
|000001d0| 73 65 74 3d 55 53 2d 41 | 53 43 49 49 0a 58 2d 53 |set=US-A|SCII.X-S|
|000001e0| 65 6e 64 65 72 3a 20 72 | 6f 62 69 6e 73 6f 6e 40 |ender: r|obinson@|
|000001f0| 72 65 64 2e 77 65 65 67 | 2e 75 69 6f 77 61 2e 65 |red.weeg|.uiowa.e|
|00000200| 64 75 0a 49 6e 2d 52 65 | 70 6c 79 2d 54 6f 3a 20 |du.In-Re|ply-To: |
|00000210| 3c 34 66 35 73 39 37 24 | 38 73 68 6f 40 74 69 67 |<4f5s97$|8sho@tig|
|00000220| 67 65 72 2e 63 63 2e 75 | 69 63 2e 65 64 75 3e 20 |ger.cc.u|ic.edu> |
|00000230| 0a 0a 4f 6e 20 35 20 46 | 65 62 20 31 39 39 36 2c |..On 5 F|eb 1996,|
|00000240| 20 51 69 20 5a 65 6e 67 | 20 77 72 6f 74 65 3a 0a | Qi Zeng| wrote:.|
|00000250| 0a 3e 20 48 69 2c 20 49 | 20 68 61 76 65 20 61 20 |.> Hi, I| have a |
|00000260| 71 75 65 73 74 69 6f 6e | 20 69 6e 20 72 65 61 64 |question| in read|
|00000270| 69 6e 67 20 61 20 76 61 | 72 69 61 62 6c 65 20 6c |ing a va|riable l|
|00000280| 65 6e 67 74 68 20 73 74 | 72 69 6e 67 3a 0a 3e 20 |ength st|ring:.> |
|00000290| 53 75 70 70 6f 73 65 20 | 79 6f 75 20 77 61 6e 74 |Suppose |you want|
|000002a0| 20 74 6f 20 72 65 61 64 | 20 66 72 6f 6d 20 73 74 | to read| from st|
|000002b0| 64 69 6e 20 61 20 73 74 | 72 69 6e 67 2c 20 62 75 |din a st|ring, bu|
|000002c0| 74 20 79 6f 75 20 64 6f | 20 6e 6f 74 20 6b 6e 6f |t you do| not kno|
|000002d0| 77 20 68 6f 77 20 0a 3e | 20 6c 6f 6e 67 20 69 74 |w how .>| long it|
|000002e0| 20 77 69 6c 6c 20 62 65 | 2e 20 59 6f 75 20 68 61 | will be|. You ha|
|000002f0| 76 65 20 74 6f 20 61 73 | 73 69 67 6e 20 74 68 65 |ve to as|sign the|
|00000300| 20 73 74 72 69 6e 67 20 | 74 6f 20 73 6f 6d 65 20 | string |to some |
|00000310| 63 68 61 72 2a 2c 20 74 | 6f 20 75 73 65 20 0a 3e |char*, t|o use .>|
|00000320| 20 69 74 20 73 61 79 20 | 61 73 20 61 6e 20 65 6c | it say |as an el|
|00000330| 65 6d 65 6e 74 20 70 61 | 72 74 20 6f 66 20 6e 6f |ement pa|rt of no|
|00000340| 64 65 20 69 6e 20 61 6e | 20 6c 69 6e 6b 65 64 20 |de in an| linked |
|00000350| 20 6c 69 73 74 2e 20 0a | 3e 20 20 48 6f 77 20 63 | list. .|> How c|
|00000360| 61 6e 20 79 6f 75 20 64 | 6f 20 74 68 61 74 3f 20 |an you d|o that? |
|00000370| 2e 20 0a 0a 20 20 54 68 | 65 20 73 69 6d 70 6c 65 |. .. Th|e simple|
|00000380| 20 77 61 79 20 69 73 20 | 74 6f 20 64 65 63 6c 61 | way is |to decla|
|00000390| 72 65 20 61 6e 20 61 72 | 72 61 79 20 74 68 61 74 |re an ar|ray that|
|000003a0| 20 69 73 20 5f 73 6f 5f | 20 62 69 67 20 74 68 61 | is _so_| big tha|
|000003b0| 74 20 74 68 65 20 75 73 | 65 72 20 0a 63 6f 75 6c |t the us|er .coul|
|000003c0| 64 6e 27 74 20 5f 70 6f | 73 73 69 62 6c 79 5f 20 |dn't _po|ssibly_ |
|000003d0| 65 6e 74 65 72 20 6d 6f | 72 65 20 63 68 61 72 61 |enter mo|re chara|
|000003e0| 63 74 65 72 73 20 74 68 | 61 6e 20 69 74 20 63 61 |cters th|an it ca|
|000003f0| 6e 20 68 6f 6c 64 2e 20 | 20 54 68 69 73 20 0a 74 |n hold. | This .t|
|00000400| 65 63 68 6e 69 71 75 65 | 20 65 69 74 68 65 72 20 |echnique| either |
|00000410| 74 72 75 73 74 73 20 74 | 68 65 20 75 73 65 72 20 |trusts t|he user |
|00000420| 61 20 67 72 65 61 74 20 | 64 65 61 6c 20 6f 72 20 |a great |deal or |
|00000430| 73 6f 61 6b 73 20 75 70 | 20 6d 65 6d 6f 72 79 2c |soaks up| memory,|
|00000440| 20 62 75 74 20 69 74 20 | 0a 77 6f 72 6b 73 20 66 | but it |.works f|
|00000450| 6f 72 20 73 75 66 66 69 | 63 69 65 6e 74 6c 79 20 |or suffi|ciently |
|00000460| 73 6f 62 65 72 20 75 73 | 65 72 73 2e 20 3a 29 20 |sober us|ers. :) |
|00000470| 20 4d 61 6e 79 20 69 6e | 70 75 74 20 64 65 76 69 | Many in|put devi|
|00000480| 63 65 73 20 61 72 65 20 | 62 75 66 66 65 72 65 64 |ces are |buffered|
|00000490| 2c 20 0a 73 6f 20 79 6f | 75 20 63 61 6e 20 74 72 |, .so yo|u can tr|
|000004a0| 79 20 73 65 74 74 69 6e | 67 20 74 68 65 20 61 72 |y settin|g the ar|
|000004b0| 72 61 79 20 6c 61 72 67 | 65 72 20 74 68 61 6e 20 |ray larg|er than |
|000004c0| 74 68 65 20 6d 61 78 69 | 6d 75 6d 20 73 69 7a 65 |the maxi|mum size|
|000004d0| 20 6f 66 20 74 68 65 20 | 62 75 66 66 65 72 2e 0a | of the |buffer..|
|000004e0| 20 20 54 68 65 20 68 61 | 72 64 20 77 61 79 20 69 | The ha|rd way i|
|000004f0| 73 20 74 6f 20 75 73 65 | 20 72 65 61 6c 6c 6f 63 |s to use| realloc|
|00000500| 28 29 20 61 6e 64 20 69 | 6e 63 72 65 6d 65 6e 74 |() and i|ncrement|
|00000510| 61 6c 20 61 6c 6c 6f 63 | 61 74 69 6f 6e 2e 0a 0a |al alloc|ation...|
|00000520| 2f 2a 2a 4a 61 6d 65 73 | 20 22 63 68 61 72 20 62 |/**James| "char b|
|00000530| 75 66 5b 31 30 32 34 5d | 22 20 52 6f 62 69 6e 73 |uf[1024]|" Robins|
|00000540| 6f 6e 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |on******|********|
|00000550| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 20 20 20 20 20 20 20 |********|* |
|00000560| 20 20 20 20 20 0a 20 20 | 22 49 66 20 61 20 66 61 | . |"If a fa|
|00000570| 74 61 6c 20 65 72 72 6f | 72 20 6f 63 63 75 72 73 |tal erro|r occurs|
|00000580| 2c 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 73 68 |, the pr|ogram sh|
|00000590| 6f 75 6c 64 20 6e 6f 74 | 20 62 65 20 61 6c 6c 6f |ould not| be allo|
|000005a0| 77 65 64 20 74 6f 20 63 | 6f 6e 74 69 6e 75 65 2e |wed to c|ontinue.|
|000005b0| 22 0a 20 2d 2d 20 4f 72 | 61 63 6c 65 20 50 72 6f |". -- Or|acle Pro|
|000005c0| 2a 43 20 55 73 65 72 27 | 73 20 47 75 69 64 65 20 |*C User'|s Guide |
|000005d0| 20 20 20 20 20 20 20 20 | 2a 2a 2a 2a 2a 2a 2a 2a | |********|
|000005e0| 2a 2a 2a 2a 2a 6a 61 6d | 65 73 2d 72 6f 62 69 6e |*****jam|es-robin|
|000005f0| 73 6f 6e 40 75 69 6f 77 | 61 2e 65 64 75 2a 2a 2f |son@uiow|a.edu**/|
|00000600| 0a 0a | |.. | |
+--------+-------------------------+-------------------------+--------+--------+